<template>
	<view class="">
		<view class="author-list">
			<view @tap="toAuthorDetails(item,index)" class="author-item" v-for="(item,index) in authorList" :key="index">
				<image src="" style="width: 80rpx;height: 80rpx;border-radius: 50%;background: #ccc;" mode="">
				</image>
				<view class="name coup-introduce">
					{{item.name}}
				</view>
			</view>
		</view>
		
		
		
		
		
	</view>
</template>

<script>
	export default {
		props:{
			authorList:{
				type:Array,
				default:()=>[]
			}
		},
		data(){
			return {
				
			}
		},
		methods:{
			toAuthorDetails(item,index){
				uni.navigateTo({
					url:"/pages/common/author-details?id="+item.id || 1
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.author-list {
		margin-top: 15rpx;
		display: flex;
		align-items: center;
		white-space: nowrap;
		overflow: auto;
	
		.author-item {
			margin: 0 15rpx;
			display: flex;
			align-items: center;
			flex-direction: column;
	
			.name {
				margin-top: 5rpx;
				font-size: 25rpx;
			}
		}
	}
</style>